package com.jw.blog.wblog.service.impl;

import com.jw.blog.wblog.entity.Blog;
import com.jw.blog.wblog.entity.custom.TimeAndCount;
import com.jw.blog.wblog.mapper.BlogMapper;
import com.jw.blog.wblog.service.IBlogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 无良芳
 * @since 2020-06-17
 */
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IBlogService {
    @Resource
    private BlogMapper blogMapper;

    @Override
    public List<TimeAndCount> selectBlogListByDate(Map<String, Object> map) {
       return blogMapper.selectBlogListByDate(map);
    }
}
